<div class="content-inner">
	<div class="marg20-btm">
           <a href=<?php echo site_url('backend_pages/allmenu'); ?> class="btn btn-primary">&hearts; View Menu </a>
                         </div>
<form action=<?php echo site_url('con_menu/update_menu'); ?> method="post" class="form-horizontal" />
<?php
	if($menu->num_rows() >0){
		foreach($menu->result() as $row){
	$getid = array(
				   'name' => 'getid',
				   'class' => 'input-xlarge',
				   'type' => 'hidden',
				   'id' => 'input01',
				   'value' => $row->menu_id
				   );
	$title = array(
				   'name' => 'menu_title',
				   'class' => 'input-xlarge',
				   'type' => 'text',
				   'id' => 'input01',
				   'value' => $row->menu_title
				   );
	$url = array(
				 $row->menu_link => $row->menu_link,  
				 'pages/phones' => 'Phones', 
				 'pages/computers' => 'Computers', 
				 'pages/jokes' => 'Jokes', 
				 'pages/poems' => 'Poems',
				 'pages/love' => 'Love',
				 'pages/others' => 'Others'
				 );
	$sub_cate = array(
				   $row->menu_type => $row->menu_type,
				   'products' => 'Product',
				   'entertainments' => 'Entertainment',
				   'others' => 'Others'
				   );
	$status = array(
	               $row->menu_statu_id=>$row->menu_statu_id,
				   '1' => 'Show',
				   '0' => 'Hide'
				   );
	$submit = array(
				   'name' => 'submit',
				   'class' => 'btn btn-primary',
				   'value' => 'Update',
				   'type' => 'submit'
				   );
	?>
	
                             <div class="control-group">
                             <h5>&nbsp;</h5>
                               <label class="control-label" for="input01">Title</label>
                               <div class="controls">
                               	<?php echo form_input($getid); ?>
                                 <?php echo form_input($title); ?>
                               </div>
                             </div>
                             <div class="control-group">
                               <label class="control-label" for="input01">Link </label>
                               <div class="controls">
                                <?php echo form_dropdown('menu_link',$url); ?>
                               </div>
                             </div>
                            
                              <div class="control-group">
                               <label class="control-label" for="input01">In Categary </label>
                               <div class="controls">
                               
                				 <?php echo form_dropdown('menu_type',$sub_cate); ?>
                               </div>
                             </div>
                               <div class="control-group">
                               <label class="control-label" for="input01">Status </label>
                               <div class="controls">
                               
                				 <?php echo form_dropdown('menu_status',$status); ?>
                               </div>
                             </div>
                             <div class="form-actions">
                                 <?php echo form_input($submit); ?>
                                 
                                 <a href="../../backend_pages/allmenu" class="btn">Cancel </a>
                                 
                                 <?php echo form_close(); ?>
                             </div>
                         </form> 
                         
                                  <?php
				
               }
		}

?>